package cj.primariaiquest.ws.xmlConfig;

import org.springframework.integration.Message;
import org.springframework.integration.MessageChannel;
import org.springframework.integration.channel.interceptor.ChannelInterceptorAdapter;

import cj.primariaiquest.dao.TicketEntityManager;


public class TicketInterceptor extends ChannelInterceptorAdapter {

	@Override
	public void postSend(Message<?> message, MessageChannel channel,
			boolean sent) {
		
		Ticket ticket = (Ticket) message.getPayload();
		TicketEntityManager tm = new TicketEntityManager();
		tm.addTicket(ticket);

	}
}
